package com.yiyuan.weixin.weixinInservice.Iml;

import com.yiyuan.weixin.Common.GlobalConstant;
import com.yiyuan.weixin.model.ReceiveXmlEntity;
import com.yiyuan.weixin.weixinInservice.action.ActionSubscribe;
import com.yiyuan.weixin.weixinInservice.action.WxActionService;
import com.yiyuan.weixin.weixinInservice.format.*;

import javax.servlet.http.HttpServletResponse;

/**
 */
public class WXResposeNews extends AbsWXResponse {
    FormatXmlService formatXmlService=new FormatXmlNews();
    WxActionService actionService=new ActionSubscribe();

    @Override
    public void wxRespond(HttpServletResponse resp, ReceiveXmlEntity xmlEntity) {
        xmlEntity=actionService.actionSubscribe(xmlEntity);
        String text=formatXmlService.formatXml(xmlEntity);
        responseMessage(resp,text);
    }

}
